import axios from "axios";

const baseUrl = "http://rap2.taobao.org:38080/app/mock/237627";

axios.interceptors.request.use((config)=>{
	// console.log("request interceptors",config)
	return config
},(err)=>{
	// console.log("interceptor request err",err)
	return Promise.reject(err)
})
axios.interceptors.response.use((res)=>{
	// console.log("interceptor response",res)
	return res
},(err)=>{
	// console.log("interceptor response err",err)
	return Promise.reject(err)
})

export const getNewList = ()=>{
	return axios.get(baseUrl + "/newslist")
}